package com.king.modules.system.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.king.common.annotation.MetaData;
import com.king.framework.base.domain.YyBaseEntity;

/**
 * 消息 Entity层
 * @author liusheng
 */
@TableName("sys_message")
public class SysMessageEntity extends YyBaseEntity {

    @MetaData(value = "消息类型：1审批消息，2系统消息，3预警消息", enumtype = "MsgType")
    public String msgtype;

    @MetaData(value = "消息标题")
    public String title;

    @MetaData(value = "消息内容")
    public String content;

    @MetaData(value = "单据类型")
    public String btype;

    @MetaData(value = "单据id")
    public Long bid;

    @MetaData(value = "单据号")
    public String bcode;

    @MetaData(value = "URL链接")
    public String url;

    @MetaData(value = "建单人id")
    public Long buserid;

    @MetaData(value = "建单人姓名")
    public String busername;

    @MetaData(value = "接收人id")
    public Long receiver;

    @MetaData(value = "接收人姓名")
    public String receivername;

    @MetaData(value = "发送人id")
    public Long sender;

    @MetaData(value = "发送人姓名")
    public String sendername;

    @MetaData(value = "发送人审核意见")
    public String sendremark;

    @MetaData(value = "发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
    public Date sendtime;

    @MetaData(value = "流程id")
    public Long flowid;

    @MetaData(value = "流程节点id")
    public Long nodeid;

    @MetaData(value = "流程节点")
    public String nodecode;

    @MetaData(value = "流程节点name")
    public String nodename;

    @MetaData(value = "是否已读：0未读，1已读", enumtype = "ReadType")
    public Integer isnew = 0;

    @MetaData(value = "读取时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
    public Date receivetime;

    @MetaData(value = "是否办理：0未办， 已办", enumtype = "DealType")
    public Integer isdeal = 0;

    @MetaData(value = "办理结果")
    public String dealresult;

    @MetaData(value = "办理时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
    public Date dealtime;

    @MetaData(value = "意见")
    public String suggestion;

    @MetaData(value = "是否撤销：0正常， 1已撤销")
    public Integer iscancel = 0;

	public String getMsgtype() {
		return msgtype;
	}

	public void setMsgtype(String msgtype) {
		this.msgtype = msgtype;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getBtype() {
		return btype;
	}

	public void setBtype(String btype) {
		this.btype = btype;
	}

	public Long getBid() {
		return bid;
	}

	public void setBid(Long bid) {
		this.bid = bid;
	}

	public String getBcode() {
		return bcode;
	}

	public void setBcode(String bcode) {
		this.bcode = bcode;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Long getBuserid() {
		return buserid;
	}

	public void setBuserid(Long buserid) {
		this.buserid = buserid;
	}

	public String getBusername() {
		return busername;
	}

	public void setBusername(String busername) {
		this.busername = busername;
	}

	public Long getReceiver() {
		return receiver;
	}

	public void setReceiver(Long receiver) {
		this.receiver = receiver;
	}

	public String getReceivername() {
		return receivername;
	}

	public void setReceivername(String receivername) {
		this.receivername = receivername;
	}

	public Long getSender() {
		return sender;
	}

	public void setSender(Long sender) {
		this.sender = sender;
	}

	public String getSendername() {
		return sendername;
	}

	public void setSendername(String sendername) {
		this.sendername = sendername;
	}

	public String getSendremark() {
		return sendremark;
	}

	public void setSendremark(String sendremark) {
		this.sendremark = sendremark;
	}

	public Date getSendtime() {
		return sendtime;
	}

	public void setSendtime(Date sendtime) {
		this.sendtime = sendtime;
	}

	public Long getFlowid() {
		return flowid;
	}

	public void setFlowid(Long flowid) {
		this.flowid = flowid;
	}

	public Long getNodeid() {
		return nodeid;
	}

	public void setNodeid(Long nodeid) {
		this.nodeid = nodeid;
	}

	public String getNodecode() {
		return nodecode;
	}

	public void setNodecode(String nodecode) {
		this.nodecode = nodecode;
	}

	public String getNodename() {
		return nodename;
	}

	public void setNodename(String nodename) {
		this.nodename = nodename;
	}

	public Integer getIsnew() {
		return isnew;
	}

	public void setIsnew(Integer isnew) {
		this.isnew = isnew;
	}

	public Date getReceivetime() {
		return receivetime;
	}

	public void setReceivetime(Date receivetime) {
		this.receivetime = receivetime;
	}

	public Integer getIsdeal() {
		return isdeal;
	}

	public void setIsdeal(Integer isdeal) {
		this.isdeal = isdeal;
	}

	public String getDealresult() {
		return dealresult;
	}

	public void setDealresult(String dealresult) {
		this.dealresult = dealresult;
	}

	public Date getDealtime() {
		return dealtime;
	}

	public void setDealtime(Date dealtime) {
		this.dealtime = dealtime;
	}

	public String getSuggestion() {
		return suggestion;
	}

	public void setSuggestion(String suggestion) {
		this.suggestion = suggestion;
	}

	public Integer getIscancel() {
		return iscancel;
	}

	public void setIscancel(Integer iscancel) {
		this.iscancel = iscancel;
	}
    
    
}
